//
//  NoDataView.m
//  GoldOperationClient
//
//  Created by yaxue wang on 16/8/1.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import "NoDataView.h"

@interface NoDataView()
@property (nonatomic, strong) UILabel *lblNotice;
@end

@implementation NoDataView


- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setBackgroundColor:[UIColor clearColor]];
        UIImage *logo = [UIImage imageNamed:@"Ico_home_noData"];
        UIImageView *logoView = [[UIImageView alloc] init];
        [self addSubview:logoView];
       
        [logoView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self).offset(86);
            make.centerX.equalTo(self);
            make.size.mas_equalTo(CGSizeMake(logo.size.width, logo.size.height));
        }];
         [logoView setImage:logo];

        
        UILabel *lbl = [[UILabel alloc] init];
        _lblNotice = lbl;
        [self addSubview:lbl];
        [lbl setText:@"暂无保障单"];
        [lbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.equalTo(logoView);
            make.top.equalTo(logoView.mas_bottom).mas_offset(23);
        }];
//        lbl.textColor = MainColor;
        lbl.textColor = C(@"989898");
        [lbl setFont:F(16)];
    }
    return self;
}

- (void)setTitle:(NSString *)title{
    [_lblNotice setText:title];
}

@end
